raar.vectorimage
Class RAGAgentShape

java.lang.Object
  extended byraar.vectorimage.RAGVectorObject
      extended byraar.vectorimage.RAGAgentShape
All Implemented Interfaces:
java.io.Serializable

public class RAGAgentShape
extends RAGVectorObject

A vector image representation of an agent.

See Also:
Serialized Form

Constructor Summary
RAGAgentShape(RAAgent src)
          Create a shape.
 
Method Summary
 java.awt.Shape getShape()
          Get the actual shape.
 java.awt.Shape getShape(double xd, double yd, double rotation)
          Get the shape at position and angle given.
 int getType()
          Get the type of shape: AGENT.
 
Methods inherited from class raar.vectorimage.RAGVectorObject
createGVectorObject, getColor, getObject, getOpacity, isFilled, isPerceivable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAGAgentShape

public RAGAgentShape(RAAgent src)
Create a shape.

Method Detail

getType

public int getType()
Get the type of shape: AGENT.


getShape

public java.awt.Shape getShape()
Get the actual shape.

Overrides:
getShape in class RAGVectorObject

getShape

public java.awt.Shape getShape(double xd,
                               double yd,
                               double rotation)
Get the shape at position and angle given.